package biz.inspeed.test.mina;

import org.apache.mina.core.future.ConnectFuture;
import org.apache.mina.core.future.IoFutureListener;

public class ConnectorListener1 implements IoFutureListener<ConnectFuture> {

	@Override
	public void operationComplete(ConnectFuture future) {
		boolean connect = future.isConnected();
		if(connect){
			System.out.println("oh yeah! we have connected to the server!!");
		}else{
			System.err.println("OH NO!!! I WANNA CONNECT TO THE SERVER!!");
		}
	}

}
